<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@include file="blocks/header.jsp" %>

<div class="row-fluid">
    <div class="span4 offset3">
        <form class="form-horizontal" method="POST" action="/login.do">
            <h4>Вход в систему</h4>
            <div class="control-group">
                <c:if test="${errorMessage != null}">
                    <div class="alert alert-error">
                        <button type="button" class="close" data-dismiss="alert">&times;</button>
                        <spring:message code="${errorMessage}" />
                    </div>
                </c:if>
            </div>

            <div class="control-group">
                <label class="control-label" for="inputEmail">Email:</label>
                <div class="controls">
                    <input type="text" id="inputEmail" placeholder="email" name="login">
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="inputPassword">Password:</label>
                <div class="controls">
                    <input type="password" id="inputPassword" placeholder="password" name="password">
                </div>
            </div>

            <div class="control-group">
                <div class="controls">
                    <label class="checkbox">
                        <input type="checkbox" name="rememberMe" checked>Запомнить
                    </label>
                    <button type="submit" class="btn">Вход</button>
                </div>
            </div>

        </form>
    </div>
</div>


<%@include file="blocks/footer.jsp" %>